home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / nano / ocaml.nanorc < prev    next >
Encoding:
Text File  |  2010-04-15  |  791 b   |  28 lines

  1. # OCaml sample nanorc
  2. #
  3. syntax "ocaml" "\.mli?$"
  4. #uid
  5. color red "\<[A-Z][0-9a-z_]{2,}\>"
  6. #declarations
  7. color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>"
  8. #structure items
  9. color red "\<(type|open|class|module|exception|external)\>"
  10. #patterns
  11. color blue "\<(fun|function|functor|match|try|with)\>"
  12. #patterns-modifiers
  13. color yellow "\<(as|when|of)\>" 
  14. #conditions
  15. color cyan "\<(if|then|else)\>"
  16. #blocs
  17. color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>"
  18. #constantes
  19. color green "\<(true|false)\>"
  20. #modules/classes
  21. color green "\<(include|inherit|initializer)\>"
  22. #expr modifiers
  23. color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
  24. #comments
  25. color white start="\(\*" end="\*\)"
  26. #strings (no multiline handling yet)
  27. color brightblack ""[^\"]*""
  28.